package functional;

@FunctionalInterface
interface Functional {
	String goodby(String arg);
}

interface FunctionalNoAnn {
	String goodby(String arg);
}

public class FunctionalAnnotation {
	public String goodbye(String arg) {
		return "Goodbye, " + arg;
	}

	@SuppressWarnings("unused")
	public static void main(String[] args) {
		FunctionalAnnotation fa = new FunctionalAnnotation();
		Functional f = fa::goodbye;
		FunctionalNoAnn fna = fa::goodbye;
		Functional fl = a -> "Goodbye, " + a;
		FunctionalNoAnn fna1 = a -> "Goodbye, " + a;
	}
}
